#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	char c[205];
	char* p=c;
	int i = 0,cnt = 0;
	scanf("%s", c);
	while (*p == '*')
	{
		cnt++;
		p++;
	}
	while (*p)
	{
		c[i++] = *p;
		p++;
	}
	while (cnt != 0)
	{
		c[i++] = '*';
		cnt--;
	}
	printf("%s", c);
}
